import Mock from 'mockjs'
import order from './order'
import auth from './auth'

Mock.setup({
  timeout: 1000 // 设置延迟响应，模拟向后端请求数据
})

const mocks = [
  ...order,
  ...auth
]

mocks.forEach(m => {
  Mock.mock(new RegExp(m.path), m.type, m.template)
})

export default Mock
